// <copyright file="ButtonTypeCheckbox.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;
using YUIAspNet;

namespace YUIAspNetDemo.Button
{
    public partial class ButtonTypeCheckbox : BaseDemoPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            this.btn.Click += new EventHandler<ButtonEventArgs>(btn_Click);
        }

        void btn_Click(object sender, ButtonEventArgs e)
        {
            this.lblState.Text = "";

            if (this.chkYUI.Checked)
                this.lblState.Text = "YUI - checked<br />";

            if (this.chkMooTools.Checked)
                this.lblState.Text += "MooTools - checked<br />";

            if (this.chkScriptaculous.Checked)
                this.lblState.Text += "Scriptaculous - checked<br />";

            if (this.chkAspNetAjax.Checked)
                this.lblState.Text += "ASP.NET Ajax - checked<br />";

            if (this.chkYUIAspNet.Checked)
                this.lblState.Text += "YUIAsp.Net Ajax - checked<br />";
        }
    }
}
